package org.springcloud.wisdom.springcloud_03_freshman.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("card")
public class Card {
    @TableId(type = IdType.AUTO,value = "wisdom.card.id")
    private Integer id;
    @TableField("wisdom.card.sid")
    private String sid;
    @TableField("wisdom.card.user")
    private String user;
    @TableField("wisdom.card.location")
    private String location;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-hh HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField("wisdom.card.time")
    private String time;
}
